package lab02.test35;

public class test{
    public static void main(String[] args) {
        Manager manager=new Manager("liu",1000);
        Salesman salesman=new Salesman("zhang",2000,20,30);
        Worker worker=new Worker("liuu",30,10);
        System.out.println(manager.getName()+"经理的工资是："+manager.computeSalary());
        System.out.println(salesman.getName()+"销售人员的工资是："+salesman.computeSalary());
        System.out.println(worker.getName()+"工人的工资是："+worker.computeSalary());

    }
}